package com.ftg.learn.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("category")
@Schema(description = "课程分类实体类")
public class Category {
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    Long id;

    @TableField("type")
    @Schema(description = "分类类型")
    Integer type;

    @TableField("name")
    @Schema(description = "分类名称")
    String name;

    @TableField("sort")
    @Schema(description = "排序")
    Integer sort;

    @TableField("create_time")
    @Schema(description = "创建时间")
    LocalDateTime createTime;

    @TableField("update_time")
    @Schema(description = "更新时间")
    LocalDateTime updateTime;
}
